package com.xsp.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * @author xsp
 * @date 2024/1/2
 * @desc book_info对应的实体类
 */
@Data
public class BookInfo {
    public BookInfo() {
    }

    public BookInfo(String bookName, String author) {
        this.bookName = bookName;
        this.author = author;
    }

    // 图书编号
    private Integer bookId;
    // 图书 名称
    private String bookName;
    private String publisher;
    private String author;
    private Integer typeId;
    private Integer remain;
    private String cover;
    private Integer version;
    // 一对一映射，子对父
    private BookType bookType;

}
